import { Pipe, PipeTransform } from '@angular/core';
import {SOURCE} from '../../../@core/service/clue-service/clue-source'
@Pipe({
  name: 'clueSource'
})
export class ClueSourcePipe implements PipeTransform {
  // public clueSource: any;
  transform(value: any, args?: any): any {
    let val = SOURCE.filter(item=>{return item.value == value});
    return val[0] ? val[0]['name'] : "";
  }
}
 